<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add Member</title>
<script type="text/javascript" src="<c:url value="/js/jquery.js"/>"></script>

</head>
<body>

<form:form commandName="member" method="post">
		<table>
			<tr>
				<td>NRIC:</td>
				<td><form:input path="nric" size="60" /></td>
			</tr>

			<tr>
				<td>Username:</td>
				<td><form:input path="username" size="60" /></td>
			</tr>
				<tr>
				<td>Password:</td>
				<td><form:password path="password" size="60" /></td>
			</tr>
			<tr>
				<td>First Name:</td>
				<td><form:input path="firstname" size="60" /></td>
			</tr>
			<tr>
				<td>Last Name:</td>
				<td><form:input path="lastname" size="60" /></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><form:input path="email" size="60" /></td>
			</tr>
			<tr>
				<td>Mobile:</td>
				<td><form:input path="mobile" size="60" /></td>
			</tr>
			<tr>
				<td>Address:</td>
				<td><form:textarea path="address" rows="3" cols="60" /></td>
			</tr>
			<tr>
				<td>Postal Code:</td>
				<td><form:input path="postalCode" size="60" /></td>
			</tr>
			<tr>
				<td>Country of Origin:</td>
				<td><form:input path="countryOfOrigin" size="60" /></td>
			</tr>
			<tr>
				<td>Date of Birth:</td>
				<td><form:input path="dateOfBirth" size="60" /></td>
			</tr>
			<tr>
				<td>Groups:</td>
				<td><form:select path="groups" multiple="multiple">
						<form:options items="${groupList}" itemValue="id" itemLabel="name" />
				</form:select></td>
			</tr>

			<tr>
				<td style="text-align: center" colspan="2"><input type="submit"
					value="Add Member" /></td>
			</tr>
		</table>
	</form:form>
</body>
</html>